<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::PAlgebraMod Class Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classhelib_1_1_p_algebra_mod-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::PAlgebraMod Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The structure of Z[X]/(Phi_m(X), p)  
 <a href="classhelib_1_1_p_algebra_mod.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_p_algebra_8h_source.html">PAlgebra.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2e01b309b1c7d5cee040aec8a583d99c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#a2e01b309b1c7d5cee040aec8a583d99c">PAlgebraMod</a> (const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;zMStar, long r)</td></tr>
<tr class="separator:a2e01b309b1c7d5cee040aec8a583d99c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64aa4324a89d97c13f7ecf03907adb7e"><td class="memTemplParams" colspan="2">template&lt;typename type &gt; </td></tr>
<tr class="memitem:a64aa4324a89d97c13f7ecf03907adb7e"><td class="memTemplItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a>&lt; type &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#a64aa4324a89d97c13f7ecf03907adb7e">getDerived</a> (type) const</td></tr>
<tr class="separator:a64aa4324a89d97c13f7ecf03907adb7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91e7b7ad1db49fc46c88ba3423beac4"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_p_algebra_mod_cx.html">PAlgebraModCx</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#aa91e7b7ad1db49fc46c88ba3423beac4">getCx</a> () const</td></tr>
<tr class="separator:aa91e7b7ad1db49fc46c88ba3423beac4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f45b9ce3eda716950ead31d8435a8e8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#a4f45b9ce3eda716950ead31d8435a8e8">operator==</a> (const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;other) const</td></tr>
<tr class="separator:a4f45b9ce3eda716950ead31d8435a8e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdd854cc29ea8d267aba8db1042e1f10"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#afdd854cc29ea8d267aba8db1042e1f10">operator!=</a> (const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;other) const</td></tr>
<tr class="separator:afdd854cc29ea8d267aba8db1042e1f10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fa24ef48361d12dc562d2b804b51fde"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#a2fa24ef48361d12dc562d2b804b51fde">getTag</a> () const</td></tr>
<tr class="memdesc:a2fa24ef48361d12dc562d2b804b51fde"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the type tag: PA_GF2_tag or PA_zz_p_tag.  <a href="classhelib_1_1_p_algebra_mod.html#a2fa24ef48361d12dc562d2b804b51fde">More...</a><br /></td></tr>
<tr class="separator:a2fa24ef48361d12dc562d2b804b51fde"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add86e2396e30c01a5d3601bfbd2115d4"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#add86e2396e30c01a5d3601bfbd2115d4">getZMStar</a> () const</td></tr>
<tr class="memdesc:add86e2396e30c01a5d3601bfbd2115d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns reference to underlying <a class="el" href="classhelib_1_1_p_algebra.html" title="The structure of (Z/mZ)* /(p)">PAlgebra</a> object.  <a href="classhelib_1_1_p_algebra_mod.html#add86e2396e30c01a5d3601bfbd2115d4">More...</a><br /></td></tr>
<tr class="separator:add86e2396e30c01a5d3601bfbd2115d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0ea3e3707ad2ea5a5d65b81f9b82287"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#ac0ea3e3707ad2ea5a5d65b81f9b82287">getFactorsOverZZ</a> () const</td></tr>
<tr class="memdesc:ac0ea3e3707ad2ea5a5d65b81f9b82287"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns reference to the factorization of Phi_m(X) mod p^r, but as ZZX's.  <a href="classhelib_1_1_p_algebra_mod.html#ac0ea3e3707ad2ea5a5d65b81f9b82287">More...</a><br /></td></tr>
<tr class="separator:ac0ea3e3707ad2ea5a5d65b81f9b82287"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47284bb9be92fce02748c0a7b1b6b339"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#a47284bb9be92fce02748c0a7b1b6b339">getR</a> () const</td></tr>
<tr class="memdesc:a47284bb9be92fce02748c0a7b1b6b339"><td class="mdescLeft">&#160;</td><td class="mdescRight">The value r.  <a href="classhelib_1_1_p_algebra_mod.html#a47284bb9be92fce02748c0a7b1b6b339">More...</a><br /></td></tr>
<tr class="separator:a47284bb9be92fce02748c0a7b1b6b339"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81574b4fc35a01a298d728d933e8d9c7"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#a81574b4fc35a01a298d728d933e8d9c7">getPPowR</a> () const</td></tr>
<tr class="memdesc:a81574b4fc35a01a298d728d933e8d9c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The value p^r.  <a href="classhelib_1_1_p_algebra_mod.html#a81574b4fc35a01a298d728d933e8d9c7">More...</a><br /></td></tr>
<tr class="separator:a81574b4fc35a01a298d728d933e8d9c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60a48c2620bacac5bea89fc2b44f6e26"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#a60a48c2620bacac5bea89fc2b44f6e26">restoreContext</a> () const</td></tr>
<tr class="memdesc:a60a48c2620bacac5bea89fc2b44f6e26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restores the <a class="el" href="namespace_n_t_l.html">NTL</a> context for p^r.  <a href="classhelib_1_1_p_algebra_mod.html#a60a48c2620bacac5bea89fc2b44f6e26">More...</a><br /></td></tr>
<tr class="separator:a60a48c2620bacac5bea89fc2b44f6e26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab19616a9e9bc6511859f3fed61a9c936"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html#ab19616a9e9bc6511859f3fed61a9c936">getMask_zzX</a> (long i, long j) const</td></tr>
<tr class="separator:ab19616a9e9bc6511859f3fed61a9c936"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The structure of Z[X]/(Phi_m(X), p) </p>
<p>An object of type <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a> stores information about a <a class="el" href="classhelib_1_1_p_algebra.html" title="The structure of (Z/mZ)* /(p)">PAlgebra</a> object zMStar, and an integer r. It also provides support for encoding and decoding plaintext slots.</p>
<p>the <a class="el" href="classhelib_1_1_p_algebra.html" title="The structure of (Z/mZ)* /(p)">PAlgebra</a> object zMStar defines (Z/mZ)^* /(0), and the <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a> object stores various tables related to the polynomial ring Z/(p^r)[X]. To do this most efficiently, if p == 2 and r == 1, then these polynomials are represented as GF2X's, and otherwise as zz_pX's. Thus, the types of these objects are not determined until run time. As such, we need to use a class hierarchy, as follows.</p>
<ul>
<li><a class="el" href="classhelib_1_1_p_algebra_mod_base.html" title="Virtual base class for PAlgebraMod.">PAlgebraModBase</a> is a virtual class</li>
</ul>
<ul>
<li>PAlgebraModDerived&lt;type&gt; is a derived template class, where type is either PA_GF2 or PA_zz_p.</li>
</ul>
<ul>
<li>The class <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a> is a simple wrapper around a smart pointer to a <a class="el" href="classhelib_1_1_p_algebra_mod_base.html" title="Virtual base class for PAlgebraMod.">PAlgebraModBase</a> object: copying a <a class="el" href="classhelib_1_1_p_algebra.html" title="The structure of (Z/mZ)* /(p)">PAlgebra</a> object results is a "deep copy" of the underlying object of the derived class. It provides dDirect access to the virtual methods of <a class="el" href="classhelib_1_1_p_algebra_mod_base.html" title="Virtual base class for PAlgebraMod.">PAlgebraModBase</a>, along with a "downcast" operator to get a reference to the object as a derived type, and also == and != operators. </li>
</ul>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2e01b309b1c7d5cee040aec8a583d99c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e01b309b1c7d5cee040aec8a583d99c">&#9670;&nbsp;</a></span>PAlgebraMod()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PAlgebraMod::PAlgebraMod </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td>
          <td class="paramname"><em>zMStar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa91e7b7ad1db49fc46c88ba3423beac4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa91e7b7ad1db49fc46c88ba3423beac4">&#9670;&nbsp;</a></span>getCx()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_p_algebra_mod_cx.html">PAlgebraModCx</a>&amp; helib::PAlgebraMod::getCx </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a64aa4324a89d97c13f7ecf03907adb7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64aa4324a89d97c13f7ecf03907adb7e">&#9670;&nbsp;</a></span>getDerived()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a>&lt;type&gt;&amp; helib::PAlgebraMod::getDerived </td>
          <td>(</td>
          <td class="paramtype">type&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Downcast operator example: const PAlgebraModDerived&lt;PA_GF2&gt;&amp; rep = alMod.getDerived(PA_GF2()); </p>

</div>
</div>
<a id="ac0ea3e3707ad2ea5a5d65b81f9b82287"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0ea3e3707ad2ea5a5d65b81f9b82287">&#9670;&nbsp;</a></span>getFactorsOverZZ()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;NTL::ZZX&gt;&amp; helib::PAlgebraMod::getFactorsOverZZ </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns reference to the factorization of Phi_m(X) mod p^r, but as ZZX's. </p>

</div>
</div>
<a id="ab19616a9e9bc6511859f3fed61a9c936"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab19616a9e9bc6511859f3fed61a9c936">&#9670;&nbsp;</a></span>getMask_zzX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> helib::PAlgebraMod::getMask_zzX </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a81574b4fc35a01a298d728d933e8d9c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81574b4fc35a01a298d728d933e8d9c7">&#9670;&nbsp;</a></span>getPPowR()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::PAlgebraMod::getPPowR </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The value p^r. </p>

</div>
</div>
<a id="a47284bb9be92fce02748c0a7b1b6b339"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47284bb9be92fce02748c0a7b1b6b339">&#9670;&nbsp;</a></span>getR()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::PAlgebraMod::getR </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The value r. </p>

</div>
</div>
<a id="a2fa24ef48361d12dc562d2b804b51fde"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fa24ef48361d12dc562d2b804b51fde">&#9670;&nbsp;</a></span>getTag()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a> helib::PAlgebraMod::getTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the type tag: PA_GF2_tag or PA_zz_p_tag. </p>

</div>
</div>
<a id="add86e2396e30c01a5d3601bfbd2115d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add86e2396e30c01a5d3601bfbd2115d4">&#9670;&nbsp;</a></span>getZMStar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a>&amp; helib::PAlgebraMod::getZMStar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns reference to underlying <a class="el" href="classhelib_1_1_p_algebra.html" title="The structure of (Z/mZ)* /(p)">PAlgebra</a> object. </p>

</div>
</div>
<a id="afdd854cc29ea8d267aba8db1042e1f10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdd854cc29ea8d267aba8db1042e1f10">&#9670;&nbsp;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PAlgebraMod::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a4f45b9ce3eda716950ead31d8435a8e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f45b9ce3eda716950ead31d8435a8e8">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PAlgebraMod::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a60a48c2620bacac5bea89fc2b44f6e26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60a48c2620bacac5bea89fc2b44f6e26">&#9670;&nbsp;</a></span>restoreContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::PAlgebraMod::restoreContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Restores the <a class="el" href="namespace_n_t_l.html">NTL</a> context for p^r. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/HElib/include/helib/<a class="el" href="_p_algebra_8h_source.html">PAlgebra.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
